package com.sc3.game.shared;

public class Utils {
	public enum CostType{
		TYPE1,//1.5^n
		TYPE2//n+n/2
	}
	public int getCost1(int baseCredit, int level) {
		return baseCredit * (int) Math.ceil(Math.pow(1.5d, (level - 1)));
	}
	
	public int getCost2(int baseCredit, int level) {
		for (int i = 0; i < level; i++) {
			baseCredit = baseCredit + baseCredit / 2;
		}
		return (int)Math.ceil(baseCredit);
	}
}
